package com.jhgsys.internal.hazard.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jhgsys.internal.common.entity.BaseEntity;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;


/**
 *  Entity
 *
 * @author zhangwei
 * @date 2024-09-12 09:55:48
 */
@Data
@TableName("hazard_report_message")
public class HazardReportMessage extends BaseEntity implements Serializable {

    /**
     * 主键
     */
    @TableId(value = "report_message_id", type = IdType.ASSIGN_UUID)
    @Size(max = 32, message = "{noMoreThan}")
    private String reportMessageId;

    /**
     * 公司Id
     */
    @TableField("tenant_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String tenantId;

    /**
     * 隐患报告Id
     */
    @TableField("report_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String reportId;

    /**
     * 留言用户Id
     */
    @TableField("user_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String userId;

    /**
     * 留言用户工号
     */
    @TableField("user_no")
    @Size(max = 64, message = "{noMoreThan}")
    private String userNo;

    /**
     * 留言用户名称
     */
    @TableField("real_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String realName;

    /**
     * 留言用户部门Id
     */
    @TableField("dept_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String deptId;

    /**
     * 留言用户部门
     */
    @TableField("dept_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String deptName;

    /**
     * 留言用户岗位Id
     */
    @TableField("post_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String postId;

    /**
     * 留言用户岗位
     */
    @TableField("post_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String postName;

    /**
     * 留言时间
     */
    @TableField("message_date")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date messageDate;

    /**
     * 留言内容
     */
    @TableField("message")
    @Size(max = 800, message = "{noMoreThan}")
    private String message;

}